package main

import "fmt"

func testGoto() {
	LOOP:
		println("inter your age: ")
		var age int
		_, err := fmt.Scan(&age)
		if err != nil {
			println("error: ", err)
		}
		if age < 18 {
			println("You are not eligible to vote!")
			goto LOOP
		} else {
			println("You are eligible to vote!")
		}
		println("all finish")
}

// func main() {
// 	testGoto()
// }